@extends('admin.layout.app')
@section('title', '信息发布管理')

@section('nav')
    @include('admin.layout.nav', ['title'=> ['系统管理','信息发布管理']])
@endsection

@section('content')
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">信息发布管理</h3>
        </div>
        <!-- /.box-header -->
        <div class="box-body pad" style="">
            <form role="form">
                <div class="box-body">
                    <div class="form-group">
                        <label for="title">信息标题：</label>
                        <input type="text" class="form-control" name="title" placeholder="请输入标题">
                    </div>
                    <div class="form-group">
                        <label for="type">信息类型：</label>
                        <select class="form-control" name="type">
                            <option>option 1</option>
                            <option>option 2</option>
                            <option>option 3</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="editor1">信息内容：</label>
                        <textarea id="editor1" name="editor1" rows="10" cols="80" style="visibility: hidden; display: none;">                                            This is my textarea to be replaced with CKEditor.
                    </textarea>
                    </div>
                </div>
                <!-- /.box-body -->

                <div class="box-footer">
                    <button type="submit" class="btn btn-primary">提交</button>
                </div>
            </form>
        </div>
    </div>
@endsection

@section('style')
    <style>

    </style>
@endsection

@section('js')
    <script src="/AdminLTE-2.4.2/bower_components/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
    <script type="text/javascript" src="/lib/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="/lib/jquery.validation/1.14.0/messages_zh.js"></script>
    <script >

        $(function () {
            // Replace the <textarea id="editor1"> with a CKEditor
            // instance, using default configuration.
            CKEDITOR.replace('editor1')
        })
    </script>
@endsection